from redis import *


if __name__ == '__main__':
    try:
        sr = Redis(host='localhost', port=6379, db=0)
        result = sr.set('name_', 'itheima1')
        result = sr.get('name')
        result = sr.delete('name')
        result = sr.keys()
        print(result)
    except Exception as e:
        print(e)

